/**
 * select the date
 * @param d the control name;
 * @return The date selected;
 */
function selectDate(d) {
  var arg = new Object();
  arg.str_datetime = d;
  arg.time_comp = false;
  var rtn = window.showModalDialog(contextPath + '/resources/html/calendar.html', arg, 'dialogWidth=210px;dialogHeight=220px;status:no;scroll=no;');
  return (rtn == null ? "" : rtn);
}
/**
 * select the date
 * @param d the control name;
 * @return The date selected;
 */
function selectDatetime(d) {
  var arg = new Object();
  arg.str_datetime = d;
  arg.time_comp = true;
  var rtn = window.showModalDialog(contextPath + '/resources/html/calendar.html', arg, 'dialogWidth=210px;dialogHeight=240px;status:no;scroll=no;');
  return (rtn == null ? "" : rtn);
}
/**
 * select the date
 * @param d the control name;
 * @return The date selected;
 */
function selectTime(t){
  var rtn = window.showModalDialog(contextPath + '/resources/html/time.htm', t, 'dialogWidth=260px;dialogHeight=50px;status:no;scroll=no;');
  return (rtn == null ? "" : rtn);
}